﻿@model Webcar.Entitys.BS_EMP_2

@{ 
    Layout = "~/Views/Shared/_leftPanelLayout.cshtml";
    BS_EMP driver = (BS_EMP)ViewBag.Driver;
   }
@section LeftTree
{
     
    @{
        Html.RenderPartial("DeptTreePartialView", new Webcar.Models.DeptTreeMode { Action = "List", Controller = "Driver", ShowChild = true });
     }
}
<div style="margin:5px 5px 5px 5px">
@using (Html.BeginForm("EmployeeExam", "Driver", Html.ViewContext.RouteData.Values, FormMethod.Post))
{
    @Html.AntiForgeryToken()
    <div id="edit-car" style="width:700px">
        @Html.HiddenFor(a => a.MAN_CODE)
        <table class="edit-table">
            <tr>
                <td style="width: 120px; text-align: right;">姓名：</td>
                <td style="width:230px">@driver.MAN_NAME</td>
                <td style="width: 120px; text-align: right">档案号：</td>
                <td style="width:230px">@driver.ARCHIVES_NO</td>
            </tr>

            <tr>
                <td style="width: 120px; text-align: right">领证日期：</td>
                <td>@driver.DRIVE_FIRST.ToDefaultDateString()</td>
                <td style="width: 120px; text-align: right">驾驶证号：</td>
                <td>@driver.DRIVE_NO</td>
            </tr>
            
            <tr>
                <td style="width: 120px; text-align: right">家庭住址：</td>
                <td>@driver.ADDRESS</td>
                <td style="width: 120px; text-align: right">电话号码：</td>
                <td>@driver.PHONE</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">原工作单位：</td>
                <td colspan="3">@Html.TextBoxFor(a => a.OLD_DEPT)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">安全行车记录：</td>
                <td colspan="3">@Html.TextAreaFor(a => a.SEC_RECORD,5,30,new { @style = "width: 100%;" })</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right;">推荐人或劳务机构：</td>
                <td colspan="3">@Html.TextBoxFor(a => a.DUTY_MAN_DEPT)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">交通法规：</td>
                <td>@Html.TextBoxFor(a=>a.TRAFFIC_TEST)</td>
                <td style="width: 120px; text-align: right">监考人：</td>
                <td>@Html.TextBoxFor(a=>a.TRAFFIC_INVIGILATOR)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">桩考：</td>
                <td>@Html.TextBoxFor(a=>a.PEG_TEST)</td>
                <td style="width: 120px; text-align: right">监考人：</td>
                <td>@Html.TextBoxFor(a=>a.PEG_INVIGILATOR)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">路考：</td>
                <td>@Html.TextBoxFor(a=>a.ROAD_TEST)</td>
                <td style="width: 120px; text-align: right">监考人：</td>
                <td>@Html.TextBoxFor(a=>a.ROAD_INVIGILATOR)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">车管部门：</td>
                <td>@Html.TextBoxFor(a=>a.MANAGE_DEPT)</td>
                <td style="width: 120px; text-align: right">主管领导：</td>
                <td>@Html.TextBoxFor(a=>a.LEADER)</td>
            </tr>
            <tr>
                <td style="width: 120px; text-align: right">聘用起始日期：</td>
                <td>@Html.CalendarFor(a=>a.START_DATE)</td>
                <td style="width: 120px; text-align: right"></td>
                <td></td>
            </tr>

        </table>
        <br />
        <div class="validation-errors">@ViewBag.ErrorMessage</div>
    </div>
    <table style="width:700px">
        <tr>
            <td style="width:650px"></td>
            <td>
                @Html.DevExpress().Button(settings =>
                {
                    settings.Name = "Button1";
                    settings.Text = CurrentUser.CheckPermission(PermissionManager.编辑驾驶员) ? "保存" : "无权限";
                    settings.Enabled = CurrentUser.CheckPermission(PermissionManager.编辑驾驶员);
                    settings.UseSubmitBehavior = true;
                    settings.Width = 70;
                    settings.ControlStyle.CssClass = "button1";
                }).GetHtml()

            </td>
            <td>
                @Html.DevExpress().Button(settings =>
                {
                    settings.ControlStyle.CssClass = "button2";
                    settings.Name = "Button2";
                    settings.Text = "取消";
                    settings.Width = 70;
                    settings.ClientSideEvents.Click = "function(s, e){history.back(); }";
                }).GetHtml()
            </td>
        </tr>

    </table>
}
</div>            